<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const fn = function () {
        console.log(this);
      };
      const Obj1 = {
        name: "ikun1",
        // static fn = function () {...}
        fn() {
          console.log(this.name, this);
        },
      };
      Obj1.fn();
      const Obj2 = {
        name: "ikun2",
        fn: () => {
          console.log(this.name, this);
        },
      };
      Obj2.fn();
    </script>
  </body>
</html>
